<<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>精灵图应用</title>
<style>
.box1 {
width: 64px;
height: 60px;
margin: 100px auto;
background: url(/sprite.png) no-repeat -180px 0;
}

.box2 {
width: 33px;
height: 28px;
margin: 40px auto;
background: url(/sprite.png) no-repeat -153px -105px;
}
</style>
</head>

<body>
<div class="box1"></div>
<div class="box2"></div>
</body>
</html><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>精灵图应用</title>
<style>
.box1 {
width: 64px;
height: 60px;
margin: 100px auto;
background: url(/sprite.png) no-repeat -180px 0;
}

.box2 {
width: 33px;
height: 28px;
margin: 40px auto;
background: url(/sprite.png) no-repeat -153px -105px;
}
</style>
</head>

<body>
<div class="box1"></div>
<div class="box2"></div>
</body>
</html><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>精灵图应用</title>
<style>
.box1 {
width: 64px;
height: 60px;
margin: 100px auto;
background: url(/sprite.png) no-repeat -180px 0;
}

.box2 {
width: 33px;
height: 28px;
margin: 40px auto;
background: url(/sprite.png) no-repeat -153px -105px;
}
</style>
</head>

<body>
<div class="box1"></div>
<div class="box2"></div>
</body>
</html><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>精灵图应用</title>
<style>
.box1 {
width: 64px;
height: 60px;
background: url(images/sprite.png);
background-position: -180px 0px;
}

.box2 {
width: 33px;
height: 28px;
background: url(images/sprite.png) ;
background-position: -153px -105px;
}
</style>
</head>

<body>
<div class="box1"></div>
<div class="box2"></div>
</body>
</html>